package tothreedesignmodel.iterator;

/**
 * @author lzhphantom
 * @description
 * @date 创建于 23:36 2020/8/1
 * @modified
 */
public interface Aggregate {
    /**
     * add a object
     *
     * @param obj obj
     * @return void
     * @description
     * @author lzhphantom
     * @date 23:37 2020/8/1
     */
    void add(Object obj);

    /**
     * remove a object
     *
     * @param obj obj
     * @return void
     * @description
     * @author lzhphantom
     * @date 23:37 2020/8/1
     */
    void remove(Object obj);

    /**
     * get a iterator
     *
     * @return Iterator
     * @description
     * @author lzhphantom
     * @date 23:38 2020/8/1
     */
    Iterator<Object> getIterator();
}
